package com.thread.test13;

import java.util.Random;

/**
 * @author bin
 * @date 2025 - 03 -13
 **/
public class MainTest {
    public static void main(String[] args) {
        Box box = new Box();
        final int MAX_COUNT = 5;
        String[] BoyList = {"张三","李四","王五","赵六","孙七"};
        String[] GirList = {"小美1","小美2","小美3","小美4","小美5"};

        for (int i = 0; i < MAX_COUNT; i++) {
            int count = new Random().nextInt(MAX_COUNT);
            new BoyThread(box,BoyList[count]).start();
            new GirlThread(box,GirList[count]).start();
        }
    }
}
